Skip to content

remove wildcard in xpath selector to fix ValueSet validation error#224

Open
haeckerbaer wants to merge 2 commits into
v2.3-wipfrom
bug_valueset
Open

remove wildcard in xpath selector to fix ValueSet validation error#224
haeckerbaer wants to merge 2 commits into
v2.3-wipfrom
bug_valueset

Conversation

@haeckerbaer

Copy link
Copy Markdown
Collaborator

As discussed and decided during SG7 meeting on 25.03.2026:

xml spy seems to throw the following error:
idc-selector-no-match:`` the selector './/siri:Values/siri:*' of identity constraint definition 'TypeOfValue_unique' doesn't match within the content model of element declaration 'ValueSet'.

For identity constraints, the selector xpath must seemingly be a restricted xpath that the schema processor can statically verify against the content model. Currently the expression contains "//" (descendant-or-self axis abbreviation) and "" (wildcard element name). Some schema validators cannot prove that this selector corresponds to elements allowed by the content model of ValueSet due to the wildcard selector siri:.

Unfortunately I don't have xml spy to validate but an explicit selector should fix the error.

@haeckerbaer haeckerbaer added this to the v2.3 milestone Jun 9, 2026
@haeckerbaer haeckerbaer self-assigned this Jun 9, 2026
@haeckerbaer haeckerbaer added bug Something isn't working late_merge Late work when considering CEN deadlines labels Jun 9, 2026

@tim-rivett tim-rivett left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fixes the XMLSpy problem.
Has anyone got Oxygen, MS tools etc to check it doesn't cause problems in those.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working late_merge Late work when considering CEN deadlines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants